Crate serde_v8[][src]

Modules

utils

Structs

Deserializer
KeyCache
Serializer
Value

serde_v8::Value allows passing through v8::Values untouched when encoding/decoding and allows mixing rust & v8 values in structs, tuples… The implementation mainly breaks down to:

Enums

Buffer
Error
SerializablePkg

SerializablePkg exists to provide a fast path for op returns, allowing them to avoid boxing primtives (ints/floats/bool/unit/…)

Traits

Serializable

Serializable exists to allow boxing values as “objects” to be serialized later, this is particularly useful for async op-responses. This trait is a more efficient replacement for erased-serde that makes less allocations, since it’s specific to serde_v8 (and thus doesn’t have to have generic outputs, etc…)

Functions

from_v8
from_v8_cached
to_v8

Type Definitions

Result